package com.vcg.community.service;

import java.util.List;
import java.util.Map;

import vc.dubbo.result.DubboResult;

import com.vcg.community.model.Resource;
import com.vcg.community.model.User;

public interface FavoriteService {
	DubboResult doFavorite(Integer userId, Integer resourceId);
	DubboResult<List<Resource>> getFavoritedResources(Integer userId);
	DubboResult<List<User>> getFavoritedUsers(Integer resourceId);

	DubboResult doFavorite(String strUserId, String strResourceId);
	DubboResult<List<Resource>> getFavoritedResources(String strUserId);
	DubboResult<List<User>> getFavoritedUsers(String strResourceId);

	DubboResult<Map<String, Boolean>> getState(String strUserId, String[] strResourceId);

	DubboResult<Map<String, Long>> getCount(String[] strResourceId);


}
